python random true false

27

python random true false -

bool(random.getrandbits(1)) #is still about twice as fast as random.choice([True, False])

Comments

Submit
0 Comments